package cn.com.majiang.service;

import cn.com.majiang.domain.Techargerecord;
import cn.com.majiang.param.TechargeParam;

import java.util.Map;

/**
 * Created by jiangyanxin on 2017/5/29.
 */
public interface ITechargerecordService {

    /**
     * 查询充卡列表
     * @param techargeParam
     * @return
     */
    Map<String, Object> searchRechargeList(TechargeParam techargeParam) ;
    /**
     * 保存充卡记录
     * @param techargerecord
     * @return
     */
    Boolean saveRoomCardRecord(Techargerecord techargerecord);

    /**
     * 保存给代理商充卡记录
     * @param managerId 代理商id
     * @param chargerId 充卡人id
     * @param playcardNum 充卡值
     * @param chargetype 充值类型
     * @return
     */
    Boolean saveManagerTechargerecord(int managerId,String chargerId,int playcardNum,String chargetype);

    /**
     * 保存给玩家充卡记录
     * @param accountId 玩家id
     * @param chargerId 充卡人id
     * @param playcardNum 充卡值
     * @param chargetype 充值类型
     * @return
     */
     Boolean saveAccountTechargerecord(int accountId,String chargerId,int playcardNum,String chargetype);

    /**
     * 房卡汇总
     * @param managerId
     * @return
     */
    Map getTotalCard(String managerId);
}
